package com.company.card_service.model;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:07
 */
@Data
@TableName("user_info")
@ApiModel(value = "UserInfo对象", description = "")
public class UserInfo {

    @ApiModelProperty("主键id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("称谓")
    @TableField("nicke_name")
    private String nickName;

    @ApiModelProperty("微信昵称")
    @TableField("wx_name")
    private String wxName;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("性别")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty("头像地址")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("省份")
    @TableField("province")
    private String province;

    @ApiModelProperty("微信授权的id")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty("同上")
    @TableField("union_id")
    private String unionId;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("逻辑删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


}
